const ejs = require('ejs')
const fs = require('fs')

let name = 'carter';
let age = 24
let str = fs.readFileSync('./index.html').toString()

let res = ejs.render(str,{name,age})
console.log(res);